{
return xstrdup(s.toUtf8().data());
}
+char * ShimString(QStringRef s)
+{
+ return xstrdup(s.toString().toUtf8().data());
+}
double ShimAttributeDouble(QXmlStreamAttributes a, QString v)
{
}
if (reader.name() == "name") {
QXmlStreamAttributes a = reader.attributes();
- wpt->shortname = ShimString(a.value("id").toString());
+ wpt->shortname = ShimString(a.value("id"));
wpt->description = ShimString(reader.readElementText());
}
if (reader.name() == "coord") {
}
waypt_alloc_gc_data(wpt_tmp)->container = v;
}
-#endif
void wpt_diff(const char* args, const char** unused)
{
if (!args) {
}
waypt_alloc_gc_data(wpt_tmp)->terr = atof(args) * 10;
}
+#endif
static void
geo_rd_init(const char* fname)